﻿
    using System;
    using System.Windows;
    using System.Text;
namespace WCYCReader.Utility
{
    public class MessageBoxUtility
    {
        public static void ShowMessageBox(string Text, string Header, MessageBoxButton Buttons)
        {
            DispatcherUtility.BeginInvokeOnUIThread(() => MessageBox.Show(Text, Header, Buttons));
        }

        public static MessageBoxResult ShowMessageBoxReturnResult(string Text, string Header, MessageBoxButton Buttons)
        {
            return MessageBox.Show(Text, Header, Buttons);
        }

        public static bool ShowOkCancel(string Header, string Text)
        {
            return MessageBox.Show(Text, Header, MessageBoxButton.OKCancel) == MessageBoxResult.OK;
        }
    }
}

